const setUserInfo = (userInfo) => {
  localStorage.setItem('userInfo', JSON.stringify(userInfo))
}

const getUserInfo = () => {
  const userInfo = localStorage.getItem('userInfo')
  return JSON.parse(userInfo)
}
const removeUserInfo = () => {
  localStorage.removeItem('userInfo')
}
export {
  setUserInfo,
  getUserInfo,
  removeUserInfo
}